<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path= request.getContextPath();
	System.out.print(path);
	String basePath = request.getScheme() + "://"    + request.getServerName() + ":" + request.getServerPort()    + path + "/";
%>
<link rel="stylesheet" type="text/css" href="<%=path %>/pages/admin/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/pages/admin/easyui/themes/icon.css">
<script type="text/javascript" src="<%=path %>/pages/admin/easyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/pages/admin/easyui/jquery.easyui.min.js"></script>
<style type="text/css">
a{text-decoration:none;}
a,a:hover{color:#545454;}
.easyui-accordion ul{list-style-type: none;margin: 0px;padding: 0px;text-align:center;}
.easyui-accordion ul li{border: 1px;padding: 0px;text-align:center;}
.easyui-accordion ul li a{background:url('../js/themes/icons/tree_file.gif') no-repeat;border:1px;line-height:24px;text-decoration:none;text-align:center;}
.easyui-accordion ul li a:link{display: block;width: 106px;color: #000000;}
.easyui-accordion ul li a:visited{color: #000000;display: block;width: 106px;}
.easyui-accordion ul li a:hover{display: block;width: 106px;color: #ffffff;}
.easyui-accordion ul li div{margin: 2px 0px;text-align: center;padding-top: 2px;}
.easyui-accordion ul li div.hover{border: 1px dashed #99BBE8;background: #E0ECFF;cursor: pointer;text-align: center;}
.easyui-accordion ul li div.hover a{color: #416AA3;text-decoration:none;text-align: center;}
.easyui-accordion ul li div.selected{border: 1px solid #99BBE8;background: #E0ECFF;cursor: default;text-align: center;}
.easyui-accordion ul li div.selected a{color: #416AA3;font-weight: bold;text-align: center;}
</style>
<body class="easyui-layout">
<div data-options="region:'north',border:false" style="height:60px;background:#B3DFDA;padding:5px">
	<p>鄞州工业地图</p>
	<p>欢迎您，${sessionScope.user.username }</p>
</div>
<div data-options="region:'south',border:false"style="height:20px;background:#efefef;line-height:20px;text-align:center">
	宁波市鄞州区经济和信息化局
</div>
<div data-options="region:'west',split:true" title="导航菜单" style="width:280px;padding1:1px;overflow:hidden;">
	<div class="easyui-accordion" data-options="fit:true,border:false">		
		<s:iterator value="#request.menuList" id="aList" status="st">
				<s:if test="parentId==0">
					<div title="<s:property value="%{name}"/>" style="padding:10px;overflow:auto;">
					<s:iterator value="#request.menuList" id="bList" status="st">
						<s:if test="#bList.parentId==#aList.Id">
							<p><s:a namespace="/pages/admin" action="%{#bList['url']}" method="page" target="mainIframe">
							<s:property value="#bList.name"/></s:a></p>
						</s:if>
					</s:iterator>
					</div>
				</s:if>
		</s:iterator>
	</div>
</div>
<div data-options="region:'center'" title="" style="overflow:hidden;">
	<iframe id="mainIframe" name="mainIframe" style="width:100%;height:100%" frameborder="0"></iframe>
</div>
</body>
</html>
<script>
$(function(){
	var num = 0;
	$.ajax({
		type:"post",
		url:'<%=path%>/pages/admin/Report!pageCount.do',
		success:function(data){
			//alert(data);
			num = data;
			$.messager.show({
				title:' 提醒窗口',
				msg:'有'+ num +'条上报信息需要处理<br><a>点此进入</a>',
				timeout:5000,
				showType:'slide'
			});
		}
	})
	
});
</script>



